<template>
	<view class="content">
		<view class="touxiang">
			<view class="picture">
				<image class="logo" src="../../static/icons/testimage.png"></image>
			</view>
		</view>
		<view class="text-area">
			<view class="input_view">
			
				<text class="iconfont icon-shenfen-"></text>
				<input  type="text" v-model="input.studyId" />
			</view >
			<view class="input_view">
				<text  class="iconfont icon-suo"></text>
				<input   type="text" v-model="input.password"/>
			</view>
			<view style="height: 100rpx;margin-top: 30rpx;">
				<text>忘记密码</text>
				<text>游客登录</text>
			</view>
			<view>
				<button class="logButton" type="default" @click="login">登录</button>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				url:"/test/studentLogin",
				input:{
					studyId:'asd',
					password:'123'
				},
				title: 'Hello',
				result:"12"
				
			}
		},
		onLoad() {

		},
		methods: {
			async login(){
				// console.log("发送请求");
				uni.navigateTo({
					url:"pages/testing/testing"
				})
				const res = await this.$myRequest(this.url,this.input,"GET")
				console.log(res)
				this.result = res.data
			}
		}
	}
</script>

<style lang="scss" scoped>
	.logButton{
		background-color: #00aa7f;
		color:#FFFFFF;
		letter-spacing: 50rpx;
		text-align: center;
	}
	.input_view{
		margin-top: 50rpx;
		display: flex;
		border: #000000,solid,1rpx;
		height: 50rpx;
		line-height: 50rpx;
	}
	.picture{
		margin-top: 200rpx;
		height: 180rpx;
		border-radius: 90rpx;
		/* width: 20rpx; */
		margin: auto;
		background-color: #3967FF;
	}
	.touxiang{
		margin-top: 200rpx;
		height: 300rpx;
	}

	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}
	.logo {
		height: 150rpx;
		width: 150rpx;
		/* padding-top: 200rpx; */
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.iconfont{
		color: #5fadff;
		font-size: 60rpx;
		width: 80rpx;
	}
	input{
		width: 300rpx;
		border: #000000,solid,1rpx;
	}
	.text-area {
		/* display: flex; */
		width: 375rpx;
		height: 500rpx;
		/* justify-content: center; */
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
